import Vue from 'vue'
import Vuex from 'vuex'
// 把store分成模块
import app from './app'
import user from './user'
// 挂载vuex
Vue.use(Vuex)

const store = new Vuex.Store({
   modules : {
       app,
       user
   }
  })

export default store;